import type { FormSchema } from '@/components/core/schema-form/';

export const meterreadingSchemas: FormSchema<API.CreateMeterreadingParams>[] = [
  {
    field: 'id',
    component: 'Input',
    label: '主键',
    rules: [{ required: true, type: 'string' }],
    colProps: {
      span: 12,
    },
  },
  {
    field: 'deviceId',
    component: 'Input',
    label: '设备主键',
    rules: [{ required: true, type: 'string' }],
    colProps: {
      span: 12,
    },
  },
  {
    field: 'scale',
    component: 'Input',
    label: '读数',
    rules: [{ required: true, type: 'string' }],
    colProps: {
      span: 12,
    },
  },
];
